import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a006(fd: IFeidaoAiBrowserComponent) {
	// todo
	const c = fd.data.node.querySelector<HTMLInputElement>('[data-id="all"]');
	const cc = fd.data.node.querySelectorAll<HTMLInputElement>('[data-id="list"]')
	const ck_cc = fd.data.node.querySelectorAll<HTMLInputElement>('[data-id="list"]:checked')
	if (Array.from(cc).length === Array.from(ck_cc).length) {
		c.checked = true
	} else {
		c.checked = false
	}
}
